package com.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.base.mapper.voipmapper.WeeksMapper;
import com.base.po.voip.Weeks;
import com.base.service.WeeksService;
import com.base.utils.Page;

@Service("weeksService")
public class WeeksServiceImpl implements WeeksService {

	@Autowired
	private WeeksMapper weeksMapper;

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return weeksMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Weeks record) {
		return weeksMapper.insert(record);
	}

	@Override
	public int insertSelective(Weeks record) {
		return weeksMapper.insertSelective(record);
	}

	@Override
	public Weeks selectByPrimaryKey(Integer id) {
		return weeksMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Weeks> selectByAll(Weeks record) {
		return weeksMapper.selectByAll(record);
	}

	@Override
	public int updateByPrimaryKeySelective(Weeks record) {
		return weeksMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Weeks record) {
		return weeksMapper.updateByPrimaryKey(record);
	}

	@Override
	public Weeks selectByCount(String parentid, String subid, String createtime) {
		return weeksMapper.selectByCount(parentid, subid, createtime);
	}

	@Override
	public Weeks countByShopAll(String shopid, String mobile, String appname, String username, String shopname,
			String createtime) {
		return weeksMapper.countByShopAll(shopid, mobile, appname, username, shopname, createtime);
	}

	@Override
	public List<Weeks> selectByShopAll(Page page, String shopid, String mobile, String appname, String username,
			String shopname, String createtime) {
		return weeksMapper.selectByShopAll(page, shopid, mobile, appname, username, shopname, createtime);
	}

	@Override
	public Weeks countByParentAll(String parentid, String mobile, String appname, String username, String shopname,
			String createtime) {
		return weeksMapper.countByParentAll(parentid, mobile, appname, username, shopname, createtime);
	}

	@Override
	public List<Weeks> selectByParentAll(Page page, String parentid, String mobile, String appname, String username,
			String shopname, String createtime) {
		return weeksMapper.selectByParentAll(page, parentid, mobile, appname, username, shopname, createtime);
	}

	@Override
	public List<Weeks> selectBySubAll(Page page, String appid, String subid) {
		return weeksMapper.selectBySubAll(page, appid, subid);
	}

	@Override
	public Integer countByUserID(String subid, String parentid) {
		return weeksMapper.countByUserID(subid,parentid);
	}
}
